package crm.entity;

/**
 * SerWithId entity. @author MyEclipse Persistence Tools
 */

public class SerWithId implements java.io.Serializable {

	// Fields

	private SerManage serManage;
	private String withWith;
	private String withTitel;

	// Constructors

	/** default constructor */
	public SerWithId() {
	}

	/** minimal constructor */
	public SerWithId(String withWith, String withTitel) {
		this.withWith = withWith;
		this.withTitel = withTitel;
	}

	/** full constructor */
	public SerWithId(SerManage serManage, String withWith, String withTitel) {
		this.serManage = serManage;
		this.withWith = withWith;
		this.withTitel = withTitel;
	}

	// Property accessors

	public SerManage getSerManage() {
		return this.serManage;
	}

	public void setSerManage(SerManage serManage) {
		this.serManage = serManage;
	}

	public String getWithWith() {
		return this.withWith;
	}

	public void setWithWith(String withWith) {
		this.withWith = withWith;
	}

	public String getWithTitel() {
		return this.withTitel;
	}

	public void setWithTitel(String withTitel) {
		this.withTitel = withTitel;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof SerWithId))
			return false;
		SerWithId castOther = (SerWithId) other;

		return ((this.getSerManage() == castOther.getSerManage()) || (this
				.getSerManage() != null && castOther.getSerManage() != null && this
				.getSerManage().equals(castOther.getSerManage())))
				&& ((this.getWithWith() == castOther.getWithWith()) || (this
						.getWithWith() != null
						&& castOther.getWithWith() != null && this
						.getWithWith().equals(castOther.getWithWith())))
				&& ((this.getWithTitel() == castOther.getWithTitel()) || (this
						.getWithTitel() != null
						&& castOther.getWithTitel() != null && this
						.getWithTitel().equals(castOther.getWithTitel())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getSerManage() == null ? 0 : this.getSerManage().hashCode());
		result = 37 * result
				+ (getWithWith() == null ? 0 : this.getWithWith().hashCode());
		result = 37 * result
				+ (getWithTitel() == null ? 0 : this.getWithTitel().hashCode());
		return result;
	}

}